package com.smartstate.admin.biz;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.oas.annotations.EnableOpenApi;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.smartstate.admin.biz.mapper")
@EnableFeignClients(basePackages = "com.smartstate.common.feign.client")
@ComponentScan(basePackages = {"com.smartstate"})
@Slf4j
@EnableTransactionManagement
@EnableOpenApi
@EnableKnife4j
public class ShAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShAdminApplication.class, args);
        log.info("================================代码更新-2022-08-11==================================================");
    }
}
